/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 666
 * Date: 2022-10-27
 * Time: 17:28
 */
import java.util.Scanner;
public class peach {
    public static void main(String[] args) {
A b1=new A();
        Scanner b=new Scanner(System.in);
int day= b.nextInt();
int ret=b1.dg(day);
        System.out.println(ret);
//        double x=2.0; int y=4; x/=++y;
//        System.out.println(x);
    }

}
class A{
    public int dg(int a){
        if(a>=1&&a<=10) {
            if (a == 10)
                return 1;
            else {
                return (dg(a + 1) + 1) * 2;
            }
        }
        else
            System.out.println("输入数字不在范围内");
        return -1;
    }
}